package com.atguigu.springcloud.myhandle;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.atguigu.springcloud.entities.CommonResult;
import com.atguigu.springcloud.entities.Payment;

public class CustomerBlockHandle {
    public static CommonResult handlerException(BlockException exception){
        return new CommonResult(4444,"这是全局定义处理",new Payment(2020L,"serial003"));
    }

    public static CommonResult handlerException2(BlockException exception){
        return new CommonResult(4444,"这是全局定义处理",new Payment(2020L,"serial004"));
    }
}
